package com.dongdongshop.service.impl;

import com.dongdongshop.domain.AjaxResult;
import com.dongdongshop.mapper.TbSellerMapper;
import com.dongdongshop.pojo.TbSeller;
import com.dongdongshop.service.ShopLoginService;
import org.apache.catalina.security.SecurityUtil;
import org.apache.dubbo.config.annotation.DubboService;
import org.apache.zookeeper.util.SecurityUtils;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.text.SimpleDateFormat;

@Service
@DubboService
public class ShopLoginServiceImpl implements ShopLoginService {

    @Resource
    private TbSellerMapper tbSellerMapper;

    @Override
    public void zhuce(TbSeller tbSeller) {
        tbSellerMapper.insertSelective(tbSeller);
    }

    @Override
    public TbSeller selectByname(String sellerId) {
        return tbSellerMapper.selectByName(sellerId);
    }
}
